package control

import "github.com/gin-gonic/gin"

//Gin_Router_Init gin实例路由添加
func Gin_Router_Init(server * gin.Engine){
	usergroup := server.Group("user")
	usergroup.POST("/login",User_Login)

	robotgroup := server.Group("robot")
	robotgroup.POST("/add",AddRobot)
	robotgroup.POST("/getallnormal",GetAllOfflineNormalRobots)
	robotgroup.POST("/config",ConfigRobot)
	robotgroup.POST("/forcedoffline",RobotForcedOffline)
	robotgroup.POST("/backonline",RobotBackOnline)
	robotgroup.POST("/robotstatus",RobotStatusShow)

	recordgroup := server.Group("record")
	recordgroup.POST("/selectall",SelectAll)
}

